<?php

namespace controllers;

class Controller_base extends \CI_Controller {
    private $em;
    /**
     * Redirects user to a specified error page.
     *
     * @param int $code            
     */
    protected function go_to_error_page($code) {
    }
    /**
     * get $em
     */
    protected function get_em() {
        try {
            return $this->em = $this->doctrine->em;
        } catch ( \Exception $ex ) {
            echo $ex->getMessage ();
        }
    }
}